home *** CD-ROM | disk | FTP | other *** search
/ 500 MB Nyheder Direkte fra Internet 9 / 500 MB nyheder direkte fra internet CD 9.iso / start / zipped / dos / novell / sdk.exe / SDK / INCLUDE / NWBINDRY.H < prev    next >
C/C++ Source or Header  |  1995-05-09  |  8KB  |  309 lines

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwbindry.h  $
  4.   $Revision:   1.12  $
  5.   $Modtime::   08 May 1995 16:37:20                        $
  6.   $Copyright:
  7.  
  8.   Copyright (c) 1989-1995 Novell, Inc.  All Rights Reserved.                      
  9.  
  10.   THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  11.   TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  12.   COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  13.   EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  14.   WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  15.   OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  16.   CRIMINAL AND CIVIL LIABILITY.$
  17.  
  18.  *****************************************************************************/
  19.  
  20. #if ! defined ( NWBINDRY_H )
  21. #define NWBINDRY_H
  22.  
  23. #if ! defined ( NWCALDEF_H )
  24. #include "nwcaldef.h"
  25. #endif
  26.  
  27. #if ! defined ( NTYPES_H )
  28. #include "ntypes.h"
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. /* Bindery object types (in HIGH-LOW order) */
  36. #define OT_WILD                 0xFFFF
  37. #define OT_UNKNOWN              0x0000
  38. #define OT_USER                 0x0100
  39. #define OT_USER_GROUP           0x0200
  40. #define OT_PRINT_QUEUE          0x0300
  41. #define OT_FILE_SERVER          0x0400
  42. #define OT_JOB_SERVER           0x0500
  43. #define OT_GATEWAY              0x0600
  44. #define OT_PRINT_SERVER         0x0700
  45. #define OT_ARCHIVE_QUEUE        0x0800
  46. #define OT_ARCHIVE_SERVER       0x0900
  47. #define OT_JOB_QUEUE            0x0A00
  48. #define OT_ADMINISTRATION       0x0B00
  49. #define OT_NAS_SNA_GATEWAY      0x2100
  50. #define OT_REMOTE_BRIDGE_SERVER 0x2600
  51. #define OT_TCPIP_GATEWAY        0x2700
  52.  
  53. /* Extended bindery object types */
  54. #define OT_TIME_SYNCHRONIZATION_SERVER 0x2D00
  55. #define OT_ARCHIVE_SERVER_DYNAMIC_SAP  0x2E00
  56. #define OT_ADVERTISING_PRINT_SERVER    0x4700
  57. #define OT_BTRIEVE_VAP                 0x5000
  58. #define OT_PRINT_QUEUE_USER            0x5300
  59.  
  60.  
  61. /* Bindery object and property flags */
  62. #define BF_STATIC   0x00
  63. #define BF_DYNAMIC  0x01
  64. #define BF_ITEM     0x00
  65. #define BF_SET      0x02
  66.  
  67. /*********  Bindery object and property security access levels  **********/
  68. #define BS_ANY_READ      0x00   /* Readable by anyone                */
  69. #define BS_LOGGED_READ   0x01   /* Must be logged in to read         */
  70. #define BS_OBJECT_READ   0x02   /* Readable by same object or super  */
  71. #define BS_SUPER_READ    0x03   /* Readable by supervisor only       */
  72. #define BS_BINDERY_READ  0x04   /* Readable only by the bindery      */
  73. #define BS_ANY_WRITE     0x00   /* Writeable by anyone               */
  74. #define BS_LOGGED_WRITE  0x10   /* Must be logged in to write        */
  75. #define BS_OBJECT_WRITE  0x20   /* Writeable by same object or super */
  76. #define BS_SUPER_WRITE   0x30   /* Writeable only by the supervisor  */
  77. #define BS_BINDERY_WRITE 0x40   /* Writeable by the bindery only     */
  78.  
  79. NWCCODE N_API NWVerifyObjectPassword
  80. (
  81.    NWCONN_HANDLE  conn,
  82.    pnstr8         objName,
  83.    nuint16        objType,
  84.    pnstr8         password
  85. );
  86.  
  87. NWCCODE N_API NWDisallowObjectPassword
  88. (
  89.    NWCONN_HANDLE  conn,
  90.    pnstr8         objName,
  91.    nuint16        objType,
  92.    pnstr8         disallowedPassword
  93. );
  94.  
  95. NWCCODE N_API NWChangeObjectPassword
  96. (
  97.   NWCONN_HANDLE   conn,
  98.   pnstr8          objName,
  99.   nuint16         objType,
  100.   pnstr8          oldPassword,
  101.   pnstr8          newPassword
  102. );
  103.  
  104. NWCCODE N_API NWReadPropertyValue
  105. (
  106.    NWCONN_HANDLE  conn,
  107.    pnstr8         objName,
  108.    nuint16        objType,
  109.    pnstr8         propertyName,
  110.    nuint8         segmentNum,
  111.    pnuint8        segmentData,
  112.    pnuint8        moreSegments,
  113.    pnuint8        flags
  114. );
  115.  
  116. NWCCODE N_API NWWritePropertyValue
  117. (
  118.    NWCONN_HANDLE  conn,
  119.    pnstr8         objName,
  120.    nuint16        objType,
  121.    pnstr8         propertyName,
  122.    nuint8         segmentNum,
  123.    pnuint8        segmentData,
  124.    nuint8         moreSegments
  125. );
  126.  
  127. NWCCODE N_API NWAddObjectToSet
  128. (
  129.    NWCONN_HANDLE  conn,
  130.    pnstr8         objName,
  131.    nuint16        objType,
  132.    pnstr8         propertyName,
  133.    pnstr8         memberName,
  134.    nuint16        memberType
  135. );
  136.  
  137. NWCCODE N_API NWDeleteObjectFromSet
  138. (
  139.    NWCONN_HANDLE  conn,
  140.    pnstr8         objName,
  141.    nuint16        objType,
  142.    pnstr8         propertyName,
  143.    pnstr8         memberName,
  144.    nuint16        memberType
  145. );
  146.  
  147. NWCCODE N_API NWIsObjectInSet
  148. (
  149.    NWCONN_HANDLE  conn,
  150.    pnstr8         objName,
  151.    nuint16        objType,
  152.    pnstr8         propertyName,
  153.    pnstr8         memberName,
  154.    nuint16        memberType
  155. );
  156.  
  157. NWCCODE N_API NWScanProperty
  158. (
  159.    NWCONN_HANDLE  conn,
  160.    pnstr8         objName,
  161.    nuint16        objType,
  162.    pnstr8         searchPropertyName,
  163.    pnuint32       iterHandle,
  164.    pnstr8         propertyName,
  165.    pnuint8        propertyFlags,
  166.    pnuint8        propertySecurity,
  167.    pnuint8        valueAvailable,
  168.    pnuint8        moreFlag
  169. );
  170.  
  171. NWCCODE N_API NWGetObjectID
  172. (
  173.    NWCONN_HANDLE  conn,
  174.    pnstr8         objName,
  175.    nuint16        objType,
  176.    pnuint32       objID
  177. );
  178.  
  179. NWCCODE N_API NWGetObjectDiskSpaceLeft
  180. (
  181.    NWCONN_HANDLE  conn,
  182.    nuint32        objID,
  183.    pnuint32       systemElapsedTime,
  184.    pnuint32       unusedDiskBlocks,
  185.    pnuint8        restrictionEnforced
  186. );
  187.  
  188. NWCCODE N_API NWGetObjectName
  189. (
  190.    NWCONN_HANDLE  conn,
  191.    nuint32        objID,
  192.    pnstr8         objName,
  193.    pnuint16       objType
  194. );
  195.  
  196. NWCCODE N_API NWScanObject
  197. (
  198.    NWCONN_HANDLE  conn,
  199.    pnstr8         searchName,
  200.    nuint16        searchType,
  201.    pnuint32       objID,
  202.    pnstr8         objName,
  203.    pnuint16       objType,
  204.    pnuint8        hasPropertiesFlag,
  205.    pnuint8        objFlags,
  206.    pnuint8        objSecurity
  207. );
  208.  
  209. NWCCODE N_API NWGetBinderyAccessLevel
  210. (
  211.    NWCONN_HANDLE  conn,
  212.    pnuint8        accessLevel,
  213.    pnuint32       objID
  214. );
  215.  
  216. NWCCODE N_API NWCreateProperty
  217. (
  218.    NWCONN_HANDLE  conn,
  219.    pnstr8         objName,
  220.    nuint16        objType,
  221.    pnstr8         propertyName,
  222.    nuint8         propertyFlags,
  223.    nuint8         propertySecurity
  224. );
  225.  
  226. NWCCODE N_API NWDeleteProperty
  227. (
  228.    NWCONN_HANDLE  conn,
  229.    pnstr8         objName,
  230.    nuint16        objType,
  231.    pnstr8         propertyName
  232. );
  233.  
  234. NWCCODE N_API NWChangePropertySecurity
  235. (
  236.    NWCONN_HANDLE  conn,
  237.    pnstr8         objName,
  238.    nuint16        objType,
  239.    pnstr8         propertyName,
  240.    nuint8         newPropertySecurity
  241. );
  242.  
  243. NWCCODE N_API NWCreateObject
  244. (
  245.    NWCONN_HANDLE  conn,
  246.    pnstr8         objName,
  247.    nuint16        objType,
  248.    nuint8         objFlags,
  249.    nuint8         objSecurity
  250. );
  251.  
  252. NWCCODE N_API NWDeleteObject
  253. (
  254.    NWCONN_HANDLE  conn,
  255.    pnstr8         objName,
  256.    nuint16        objType
  257. );
  258.  
  259. NWCCODE N_API NWRenameObject
  260. (
  261.    NWCONN_HANDLE  conn,
  262.    pnstr8         oldObjName,
  263.    pnstr8         newObjName,
  264.    nuint16        objType
  265. );
  266.  
  267. NWCCODE N_API NWChangeObjectSecurity
  268. (
  269.    NWCONN_HANDLE  conn,
  270.    pnstr8         objName,
  271.    nuint16        objType,
  272.    nuint8         newObjSecurity
  273. );
  274.  
  275. NWCCODE N_API NWOpenBindery
  276. (
  277.    NWCONN_HANDLE  conn
  278. );
  279.  
  280. NWCCODE N_API NWCloseBindery
  281. (
  282.    NWCONN_HANDLE conn
  283. );
  284.  
  285. NWCCODE N_API NWScanObjectTrusteePaths
  286. (
  287.    NWCONN_HANDLE  conn,
  288.    nuint32        objID,
  289.    nuint16        volNum,
  290.    pnuint16       iterHandle,
  291.    pnuint8        accessRights,
  292.    pnstr8         dirPath
  293. );
  294.  
  295. NWCCODE N_API NWGetObjectEffectiveRights
  296. (
  297.    NWCONN_HANDLE  conn,
  298.    nuint32        objID,
  299.    NWDIR_HANDLE   dirHandle,
  300.    pnstr8         path,
  301.    pnuint16       rightsMask
  302. );
  303.  
  304. #ifdef __cplusplus
  305. }
  306. #endif
  307.  
  308. #endif
  309.